package com.gnerv.battle.boot.project.guard.business;

import com.gnerv.battle.boot.common.base.model.RestResult;
import com.gnerv.battle.boot.project.guard.model.dto.MonitorDatasourceCreateDTO;
import com.gnerv.battle.boot.project.guard.model.dto.MonitorDatasourceDTO;
import com.gnerv.battle.boot.project.guard.model.dto.MonitorDatasourceUpdateDTO;

import java.util.List;

/**
 * @author ligen
 */
public interface MonitorDatasourceBusiness {

    RestResult<Void> create(MonitorDatasourceCreateDTO monitorDatasourceCreateDTO);

    RestResult<Void> deleteByUkId(String ukId);

    RestResult<Void> updateByUkId(MonitorDatasourceUpdateDTO monitorDatasourceUpdateDTO);

    RestResult<MonitorDatasourceDTO> selectByUkId(String ukId);

    RestResult<List<MonitorDatasourceDTO>> listByName(String name, Integer page, Integer size);
}
